Return

Edit Task: SetResourceDetails DurationOverride

Description

The DurationOverride attribute under EditTask defines the duration override for the specified resource for all the task's possibilities.

Parameters

ParameterDescription
ResourceNameA string of text of the resource that is being defined within the command.
TypeThe parameter options are either 'None', 'FixedDur', or 'EfficiencyFactor'.
  • None: There is no override of a task's defined fixed duration for this task's assignments.
  • FixedDur: If this task uses this resource, then the duration of this task will be overridden to the provided DurationOverrideValue.
  • EfficiencyFactor: If this task uses this resource, then the duration of this task will be overridden by the provided Efficiency Factor. The Efficiency Factor is the denominator in the formula; OverrideDuration = task defined fixed duration/ Efficiency Factor.
ValueA non negative double representing the value for the override field. Either the duration in seconds when using Type = FixedDur or the denominator when using Type = EfficiencyFactor

Examples

Set all duration override settings for all possibilities containing ResA in TaskA.

PATCH api/task/TaskA

Body:

{

"SetResourceDetails" : {

"ResourceName" : "ResA",

"DurationOverride" : {

"Type" : "EfficiencyFactor",

"Value" : "0.2" }

}

}